<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Character representations</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="parle.pattern.matching.html">« Pattern matching</a></li>
      <li style="float: right;"><a href="parle.regex.charclass.html">Character classes »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="parle.pattern.matching.html">Pattern matching</a></li>
    <li>Character representations</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="parle.regex.chars" class="section">
  <h2 class="title">Character representations</h2>
  <p class="para">
   <table class="doctable table">
    <caption><strong>Character representations</strong></caption>
    
     <thead>
      <tr>
       <th>Sequence</th><th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>\a</td><td>Alert (bell).</td>
      </tr>

      <tr>
       <td>\b</td><td>Backspace.</td>
      </tr>

      <tr>
       <td>\e</td><td>ESC character, \x1b.</td>
      </tr>

      <tr>
       <td>\n</td><td>Newline.</td>
      </tr>

      <tr>
       <td>\r</td><td>Carriage return.</td>
      </tr>

      <tr>
       <td>\f</td><td>Form feed, \x0c.</td>
      </tr>

      <tr>
       <td>\t</td><td>Horizontal tab, \x09.</td>
      </tr>

      <tr>
       <td>\v</td><td>Vertical tab, \x0b.</td>
      </tr>

      <tr>
       <td>\oct</td><td>Character specified by a three-digit octal code.</td>
      </tr>

      <tr>
       <td>\xhex</td><td>Character specified by a hex code.</td>
      </tr>

      <tr>
       <td>\cchar</td><td>Named control character.</td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div></div></div></body></html>